package com.yjj.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjj.bean.Yjj_teacher;
import com.yjj.dao.Yjj_teacherDao;
import com.yjj.service.Iyjj_teacherService;
import com.yjj.util.Pageutil;

@Service("iyjj_teacherService")
public class Yjj_teacherServiceImpl implements Iyjj_teacherService {

	@Autowired
	Yjj_teacherDao yjj_teacherDao;
	
	@Override
	public int deleteByPrimaryKey(Integer tid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.deleteByPrimaryKey(tid);
	}

	@Override
	public int insert(Yjj_teacher record) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.insert(record);
	}

	@Override
	public int insertSelective(Yjj_teacher record) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.insertSelective(record);
	}

	@Override
	public Yjj_teacher selectByPrimaryKey(Integer tid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.selectByPrimaryKey(tid);
	}

	@Override
	public int updateByPrimaryKeySelective(Yjj_teacher record) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Yjj_teacher record) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.updateByPrimaryKey(record);
	}

	@Override
	public List selectByGradeMax4(String tname) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.selectByGradeMax4(tname);
	}

	@Override
	public List selectAll(String tname) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.selectAll(tname);
	}

	@Override
	public Object ifdate(String newDate, String stratdate,
			Integer tid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.ifdate(newDate,stratdate,tid);
	}

	@Override
	public List getTeacherBysid(Integer sid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getTeacherBysid(sid);
	}

	@Override
	public List getMyattention(Integer uid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getMyattention(uid);
	}

	@Override
	public List getOneUserClearing(Integer uid) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getOneUserClearing(uid);
	}

	@Override
	public Object getByTeacherName(String tel) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getByTeacherName(tel);
	}

	@Override
	public Object getByTeacherNameAndClazz(String tel, String pwd) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getByTeacherNameAndClazz(tel,pwd);
	}

	@Override
	public int getcount() {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getcount();
	}

	@Override
	public List getTeacherAllAndFenPage(Pageutil p) {
		// TODO Auto-generated method stub
		return yjj_teacherDao.getTeacherAllAndFenPage(p);
	}

}
